package com.ioc.service;

import com.ioc.dao.UserDao;
import com.ioc.dao.impl.UserDaoImpl;

public class UserService {

    private String username;


    private UserDao userDao;


    public void save(){
        System.out.println("当前用户名;"+username);
        userDao.save();
    }

    public void setUsername(String username) {
        System.out.println("username的set方法");
        this.username = username;
    }

    public void setUserDao(UserDao userDao) {
        System.out.println("这是UserDao的setter方法");
        this.userDao = userDao;
    }
}
